home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-05-13 | 1.5 KB | 73 lines | [TEXT/PJMM] |
- unit LogoWindo;
-
- interface
-
- procedure Init_LogoWindo;
- procedure Close_LogoWindo;
- procedure UpDate_LogoWindo;
- procedure Open_LogoWindo;
-
- implementation
-
- var
- logoWindo: WindowPtr;
- tempRect: Rect;
- Pic_Handle: PicHandle;
-
- {=================================}
-
- procedure Init_LogoWindo;
- begin
- logoWindo := nil;
- end;
-
- {=================================}
-
- procedure Close_LogoWindo;
- begin
- DisposeWindow(logoWindo);
- logoWindo := nil;
- end;
-
- {=================================}
-
- procedure UpDate_LogoWindo;
- var
- SavePort: WindowPtr;
- begin
- if (logoWindo <> nil) then
- begin
- GetPort(SavePort);
- SetPort(logoWindo);
- Pic_Handle := GetPicture(1999);
- SetRect(tempRect, 0, 0, 321, 308);
- if (Pic_Handle <> nil) then
- begin
- ClipRect(tempRect);
- HLock(Handle(Pic_Handle));
- tempRect.Right := tempRect.Left + (Pic_Handle^^.picFrame.Right - Pic_Handle^^.picFrame.Left);
- tempRect.Bottom := tempRect.Top + (Pic_Handle^^.picFrame.Bottom - Pic_Handle^^.picFrame.Top);
- HUnLock(Handle(Pic_Handle));
- end;
- if (Pic_Handle <> nil) then
- DrawPicture(Pic_Handle, tempRect);
- SetRect(tempRect, 0, 0, 1023, 1023);
- ClipRect(tempRect);
- ReleaseResource(Handle(Pic_Handle));
- SetPort(SavePort);
- end;
- end;
-
- {=================================}
-
- procedure Open_LogoWindo;
- begin
- logoWindo := GetNewWindow(1999, nil, Pointer(-1));
- SelectWindow(logoWindo);
- SetPort(logoWindo);
- UpDate_LogoWindo;
- end;
-
- {=================================}
-
- end. {End of unit}